
export default {
  data() {
    return {
      fieldList: [
        { name: '证书名称', field: 'field1' },
        { name: '版本', field: 'field2' },
        { name: '供应商', field: 'field3' },
        { name: '供应商编号', field: 'field4' },
      ],

      columns: [
        { title: '序号', width: 50, customRender: (text, record, index) => `${index + 1}`, align: 'center', },
        { title: '证书名称', dataIndex: 'certificationName', width: 180, ellipsis: true },
        { title: '证书类别', dataIndex: 'certificationType', width: 180, scopedSlots: { customRender: 'certificationType' }, ellipsis: true },
        { title: '到期时间', dataIndex: 'expirationTime', width: 120, scopedSlots: { customRender: 'date' }, ellipsis: true },
        { title: '版本', dataIndex: 'version', width: 100, ellipsis: true },
        { title: '供应商', dataIndex: 'supplierName', width: 220, ellipsis: true },
        { title: '供应商编号', dataIndex: 'supplierCode', width: 150, ellipsis: true },
        { title: '提交人', dataIndex: 'submitter', width: 100, ellipsis: true },
        { title: '提交时间', dataIndex: 'submitTime', width: 120, scopedSlots: { customRender: 'date' }, ellipsis: true },
        { title: '更新时间', dataIndex: 'updateTime', width: 120, scopedSlots: { customRender: 'date' }, ellipsis: true },
        { title: '操作', dataIndex: 'action', width: 150, align: 'center', fixed: 'right', scopedSlots: { customRender: 'action' } }
      ]
    }
  }
}